package com.wanmait.recruitment.service.impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.recruitment.mapper.DistrictMapper;
import com.wanmait.recruitment.pojo.District;
import com.wanmait.recruitment.service.DistrictService;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
@Service
@Transactional(rollbackFor = Exception.class)
public class DistrctServiceImpl implements DistrictService {
    @Resource
    private DistrictMapper districtMapper;

    @Override
    @Cacheable("distrctCache")
    public List<District> findByCityId(int cityId) {
        return districtMapper.findByCityId(cityId);
    }

    @Override
    public void insert(District object) {

    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public void update(District object) {

    }

    @Override
    public District findById(Integer id) {
        return null;
    }

    @Override
    public List<District> findAll() {
        return null;
    }

    @Override
    public List<District> findAll(District object) {
        return null;
    }

    @Override
    public PageInfo<District> findPage(int pageNum, int pageSize) {
        return null;
    }
}
